/* styles/Home.module.css */
.container {
    display: flex;
    min-height: 60vh;
    max-height: 60vh;
    padding: 2rem;
    overflow: scroll;
}

.timelineItemWrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    position: relative;
}

.main {
    display: flex;
    /* width: 100%;
    max-width: 1200px;
    margin: 0 auto; */
    flex: 1;
    overflow: hidden;
}

.timelineContainer {
    position: relative;
    width: 40%;
    height: 60vh;
    margin-right: 5%;
}

.timelineScrollContainer {
    height: 100%;
    overflow-y: auto;
    position: relative;
    padding: 1rem;
    box-sizing: border-box;
    scroll-behavior: smooth;
    /* 新增底部空白区域 */
    padding-bottom: 50vh; /* 50%视口高度，确保最后一项能滚动到中间 */
  }

/* 时间项内容占剩余空间 */
.timelineItem {
    flex: 1;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 1rem;
    margin: 0; /* 由 wrapper 控制间距 */
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
  }
  
  .timelineItem.active {
    background: #e0f7fa;
    transform: scale(1.02);
    border: 2px solid #00bcd4;
  }
  
  .timelineItem:hover {
    background-color: #f0f0f0;
  }

.time {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.description {
    color: #555;
    line-height: 1.5;
}

.image {
    max-width: 100%;
    border-radius: 6px;
    margin-top: 0.5rem;
}

/* 调整 marker 宽度和位置，固定在左侧一定距离 */
.marker {
    position: relative; /* 取消绝对定位，跟随父容器 */
    flex-shrink: 0;
    width: 40px; /* 固定宽度，左侧区域 */
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    z-index: 10;
  }
  
  /* 竖线改为垂直居中且高度自适应 */
  .markerLine {
    width: 2px;
    height: 60%;
    background: #ff4081;
    border-radius: 1px;
  }
  
  /* 圆点居中显示 */
  .markerDot {
    width: 12px;
    height: 12px;
    background: #ff4081;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 12;
  }

.detailPanel {
    width: 55%;
    padding: 2rem;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
}

.detailTime {
    color: #666;
    margin: 1rem 0 1.5rem;
    font-size: 1rem;
}

.detailImage {
    max-width: 100%;
    border-radius: 8px;
    margin-top: 1rem;
}

.detailDescription {
    margin-top: 1.5rem;
    line-height: 1.6;
}